Native-American groups and environmental activists have been protesting since summer to block construction of the nearly completed 1,172-mile pipeline.